import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { resolve } from 'node:path'

export const r = (...args: any[]) => resolve(__dirname, '.', ...args)
export default defineConfig({
  plugins: [
    react()
  ],
  base: './',
  resolve: {
    alias: {
      '@': '/src',
      '^': '/',
    },
  }
})
